package com.sikaryofficial.auth.mapper;

import com.sikaryofficial.system.api.domain.SysUserOauth;
import me.zhyd.oauth.model.AuthUser;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @author : qinjinyuan
 * @desc : 三方用户类接口
 * @date : 2023/11/03 9:19
 */
@Mapper
public interface SysUserOauthMapping {
    SysUserOauthMapping INSTANCE = Mappers.getMapper(SysUserOauthMapping.class);
    /**
     * 实体映射resp
     *
     * @param activityReq
     * @return
     */
    @Mapping(source = "username", target = "userName")
    @Mapping(source = "nickname", target = "nickName")
    SysUserOauth coverReqToEntity(AuthUser activityReq);
}
